Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Aspect Ratio Camera Data Structure

You use an aspect ratio camera data structure to get or set information about an aspect ratio camera. An aspect ratio camera data structure is defined by the TQ3ViewAngleAspectCameraData data type.

typedef struct TQ3ViewAngleAspectCameraData {
    TQ3CameraData                       cameraData;
    float                               fov;
    float                               aspectRatioXToY;
} TQ3ViewAngleAspectCameraData;
cameraData
A camera data structure specifying basic information about the aspect ratio camera.
fov
The camera's maximum field of view. This parameter should contain a positive floating-point value specified in radians. If the value in the aspectRatioXToY field is greater than 1.0, the field of view is vertical; if the value in the aspectRatioXToY field is less than 1.0, the field of view is horizontal.
aspectRatioXToY
The camera's horizontal-to-vertical aspect ratio. To avoid distortion, this ratio should be the same as the ratio of the width to the height of the camera's view port.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |